From 1a8d575e3573137ee597e8916f908ae2fdc65694 Mon Sep 17 00:00:00 2001 From: Nathanael Anderson Date: Tue, 19 Sep 2017 03:06:09 -0500 Subject: [PATCH] Updates for later version of node/v8 --- README.md | 1 - lib/v8-browser-all.js | 12 +++--------- lib/v8-native-calls.js | 8 +------- lib/v8-native-dummy.js | 6 +++--- package.json | 2 +- 5 files changed, 8 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index b26026b..6295c68 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,6 @@ v8.collectGarbage(); - hasDictionaryElements(obj) - hasFastHoleyElements(obj) - haveSameMap(obj1, obj2) -- isObserved(obj) - isValidSmi(obj) - isSmi(obj) - hasFastSmiOrObjectElements(obj) diff --git a/lib/v8-browser-all.js b/lib/v8-browser-all.js index 953d193..ebc5344 100644 --- a/lib/v8-browser-all.js +++ b/lib/v8-browser-all.js @@ -242,9 +242,6 @@ getV8Version: function() {\ return %GetV8Version();\ },\ - isObserved: function(data) {\ - return %IsObserved(data);\ - }\ setFlags: function(flag) { \ return %SetFlags(flag); \ }, \ @@ -253,10 +250,7 @@ }, \ traceExit: function(val) { \ return %TraceExit(val); \ - }, \ - getThreadCount: function() { \ - return %GetThreadCount(0); \ - }\ + } \ };\ ')(); @@ -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; } diff --git a/lib/v8-native-calls.js b/lib/v8-native-calls.js index 4cdede3..14fa954 100644 --- a/lib/v8-native-calls.js +++ b/lib/v8-native-calls.js @@ -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) @@ -105,9 +105,6 @@ _global.v8 = { getV8Version: function() { return %GetV8Version(); }, - isObserved: function(data) { - return %IsObserved(data); - }, setFlags: function(flag) { return %SetFlags(flag); }, @@ -116,9 +113,6 @@ _global.v8 = { }, traceExit: function(val) { return %TraceExit(val); - }, - getThreadCount: function() { - return %GetThreadCount(0); } }; diff --git a/lib/v8-native-dummy.js b/lib/v8-native-dummy.js index dffa0b5..df53a6b 100644 --- a/lib/v8-native-dummy.js +++ b/lib/v8-native-dummy.js @@ -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) @@ -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; diff --git a/package.json b/package.json index 47ca035..b6415fa 100644 --- a/package.json +++ b/package.json @@ -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",