summaryrefslogtreecommitdiff
path: root/lib/vm.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-09-08 13:30:19 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-09-08 13:30:52 -0700
commit26834b052402aa22fa1d5d5d791f18e82dfb390b (patch)
treee202474438a52d1a40d6b5e785c74b504f7618d5 /lib/vm.js
parent65e6ba9cce7c86da2870247eab908f73b1d9ad4a (diff)
downloadandroid-node-v8-26834b052402aa22fa1d5d5d791f18e82dfb390b.tar.gz
android-node-v8-26834b052402aa22fa1d5d5d791f18e82dfb390b.tar.bz2
android-node-v8-26834b052402aa22fa1d5d5d791f18e82dfb390b.zip
Revert "vm context with accessors"
This reverts commit 4527de8cba3bf5f107fcefcf43dbdaa308881ba4. Causes segfault in test/message/undefined_reference_in_new_context.js
Diffstat (limited to 'lib/vm.js')
-rw-r--r--lib/vm.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/vm.js b/lib/vm.js
index 45f0f59150..d3348afac5 100644
--- a/lib/vm.js
+++ b/lib/vm.js
@@ -21,19 +21,6 @@
var binding = process.binding('evals');
-binding.NodeScript._setCloneMethod(function(source, target) {
- Object.getOwnPropertyNames(source).forEach(function(key) {
- try {
- var desc = Object.getOwnPropertyDescriptor(source, key);
- if (desc.value === source) desc.value = target;
-
- Object.defineProperty(target, key, desc);
- } catch (e) {
- // Catch sealed properties errors
- }
- });
-});
-
exports.Script = binding.NodeScript;
exports.createScript = function(code, ctx, name) {
return new exports.Script(code, ctx, name);