quickjs-emscripten
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -413,2 +413,5 @@ "use strict"; | ||
} | ||
// dispose created functions; or no-op if these are this.undefined | ||
get.dispose(); | ||
set.dispose(); | ||
}; | ||
@@ -415,0 +418,0 @@ /** |
@@ -125,2 +125,14 @@ "use strict"; | ||
}); | ||
mocha_1.describe('properties', function () { | ||
mocha_1.it('defining a property does not leak', function () { | ||
vm.defineProp(vm.global, 'Name', { | ||
enumerable: false, | ||
configurable: false, | ||
get: function () { return vm.newString('World'); }, | ||
}); | ||
var result = vm.unwrapResult(vm.evalCode('"Hello " + Name')); | ||
assert_1.default.equal(vm.dump(result), 'Hello World'); | ||
result.dispose(); | ||
}); | ||
}); | ||
mocha_1.describe('objects', function () { | ||
@@ -127,0 +139,0 @@ mocha_1.it('can set and get properties by native string', function () { |
{ | ||
"name": "quickjs-emscripten", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"main": "dist/quickjs.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1150579
5992