@auto_js/v8_exports 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CMakeLists.txt CHANGED
@@ -76,12 +76,8 @@ if(NPM_PACKAGE_NAME STREQUAL @auto_js/isolated_v8_exports)
76
76
  )
77
77
  endif()
78
78
 
79
- # P3034R1 workaround for gcc
80
- if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
81
- set(v8 y8)
82
- else()
83
- set(v8 v8)
84
- endif()
79
+ # P3034R1 workaround for clang [23] & gcc [all]
80
+ set(v8 y8)
85
81
 
86
82
  # Link against v8, which is built elsewhere
87
83
  if(V8_LIBRARY_TYPE STREQUAL static)
package/expand_def CHANGED
@@ -10,7 +10,7 @@ replace() {
10
10
  sed -E -e "s/(\s*#)/__REMOVE_PRE__\1/" -e "s/^\s*\/\/([A-Za-z0-9 ()_\-]+$)/__COMMENT__\1/" | \
11
11
  cpp -E "$@" | \
12
12
  sed -E -e "s/__REMOVE_PRE__//" -e "s/__COMMENT__/\/\//" | \
13
- grep -Ev "^# [01]"
13
+ grep -Ev '^# [0-9]+ '
14
14
  }
15
15
 
16
16
  # nb: First line *must* be the module declaration, if it exists. So the `#line` directive happens
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auto_js/v8_exports",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "C++ module exports for v8",
5
5
  "author": "https://github.com/laverdet/",
6
6
  "homepage": "https://github.com/laverdet/isolated-vm/tree/experimental/packages/third_party/v8",
package/v8.cc CHANGED
@@ -95,6 +95,11 @@ using v8::TryCatch;
95
95
 
96
96
  // v8-external.h
97
97
  using v8::External;
98
+ #if V8_HAS_TAGGED_EXTERNAL
99
+ using v8::ExternalPointerTypeTag;
100
+ #else
101
+ using ExternalPointerTypeTag = unsigned;
102
+ #endif
98
103
 
99
104
  // v8-function-callback.h
100
105
  using v8::FunctionCallback;