Skip to content

Commit

Permalink
Updates for later version of node/v8
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanaelA committed Sep 19, 2017
1 parent 3615f66 commit 1a8d575
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 21 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ v8.collectGarbage();
- hasDictionaryElements(obj)
- hasFastHoleyElements(obj)
- haveSameMap(obj1, obj2)
- isObserved(obj)
- isValidSmi(obj)
- isSmi(obj)
- hasFastSmiOrObjectElements(obj)
Expand Down
12 changes: 3 additions & 9 deletions lib/v8-browser-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,6 @@
getV8Version: function() {\
return %GetV8Version();\
},\
isObserved: function(data) {\
return %IsObserved(data);\
}\
setFlags: function(flag) { \
return %SetFlags(flag); \
}, \
Expand All @@ -253,10 +250,7 @@
}, \
traceExit: function(val) { \
return %TraceExit(val); \
}, \
getThreadCount: function() { \
return %GetThreadCount(0); \
}\
} \
};\
')();

Expand Down Expand Up @@ -284,8 +278,8 @@

// Returns booleans, so we return false
v8.getOptimizationStatus = v8.hasFastProperties = v8.hasFastSmiElements = v8.hasFastObjectElements = v8.hasFastDoubleElements =
v8.hasDictionaryElements = v8.hasFastHoleyElements = v8.haveSameMap = v8.isObserved = v8.isValidSmi = v8.isSmi =
v8.hasFastSmiOrObjectElements = v8.hasSloppyArgumentsElements = v8.getThreadCount =
v8.hasDictionaryElements = v8.hasFastHoleyElements = v8.haveSameMap = v8.isValidSmi = v8.isSmi =
v8.hasFastSmiOrObjectElements = v8.hasSloppyArgumentsElements =
v8.traceEnter = v8.traceExit = v8.setFlags = v8.isNative;

}
Expand Down
8 changes: 1 addition & 7 deletions lib/v8-native-calls.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
--------------------------------------
(c)2014-2016, Nathanael Anderson.
(c)2014-2017, Nathanael Anderson.
Repository: https://github.com/Nathanaela/v8-Natives
--------------------------------------
v8-Natives is under The MIT License (MIT)
Expand Down Expand Up @@ -105,9 +105,6 @@ _global.v8 = {
getV8Version: function() {
return %GetV8Version();
},
isObserved: function(data) {
return %IsObserved(data);
},
setFlags: function(flag) {
return %SetFlags(flag);
},
Expand All @@ -116,9 +113,6 @@ _global.v8 = {
},
traceExit: function(val) {
return %TraceExit(val);
},
getThreadCount: function() {
return %GetThreadCount(0);
}
};

Expand Down
6 changes: 3 additions & 3 deletions lib/v8-native-dummy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
--------------------------------------
(c)2014, Nathanael Anderson.
(c)2014-2017, Nathanael Anderson.
Repository: https://github.com/Nathanaela/v8-Natives
--------------------------------------
v8-Natives is under The MIT License (MIT)
Expand Down Expand Up @@ -51,8 +51,8 @@ var v8 = {

// Returns booleans, so we return false
v8.getOptimizationStatus = v8.hasFastProperties = v8.hasFastSmiElements = v8.hasFastObjectElements = v8.hasFastDoubleElements =
v8.hasDictionaryElements = v8.hasFastHoleyElements = v8.haveSameMap = v8.isObserved = v8.isValidSmi = v8.isSmi =
v8.hasFastSmiOrObjectElements = v8.hasSloppyArgumentsElements = v8.getThreadCount =
v8.hasDictionaryElements = v8.hasFastHoleyElements = v8.haveSameMap = v8.isValidSmi = v8.isSmi =
v8.hasFastSmiOrObjectElements = v8.hasSloppyArgumentsElements =
v8.traceEnter = v8.traceExit = v8.setFlags = v8.isNative;

_global.v8 = v8;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"bugs" : {"url": "http://github.com/Nathanaela/v8-natives/issues"},
"repository" : {"type": "git", "url": "http://github.com/Nathanaela/v8-natives.git"},
"main" : "lib/v8-node",
"version" : "1.0.0",
"version" : "1.0.1",
"engines" : {"node": ">= 0.6.0" },
"directories" : {
"lib" : "lib",
Expand Down

0 comments on commit 1a8d575

Please sign in to comment.