Skip to content
Browse files

test: remove unnecessary string literals

PR-URL: #21638
Reviewed-By: Rich Trott <>
Reviewed-By: Anna Henningsen <>
Reviewed-By: Colin Ihrig <>
Reviewed-By: Trivikram Kamat <>
Reviewed-By: Luigi Pinca <>
Reviewed-By: Michael Dawson <>
  • Loading branch information
Jacek Pospychała authored and Trott committed Jul 5, 2018
1 parent d4966a1 commit a64b2f2b94c018dcfaf2ddb9adffd6dea5082919
Showing with 5 additions and 5 deletions.
  1. +5 −5 test/parallel/test-vm-function-declaration.js
@@ -37,8 +37,8 @@ code += '(function(){return this})().b;\n';

const res = vm.runInContext(code, o, 'test');

assert.strictEqual(typeof res, 'function', 'result should be function');
assert.strictEqual(, 'b', 'res should be named b');
assert.strictEqual(typeof o.a, 'function', 'a should be function');
assert.strictEqual(typeof o.b, 'function', 'b should be function');
assert.strictEqual(res, o.b, 'result should be global b function');
assert.strictEqual(typeof res, 'function');
assert.strictEqual(, 'b');
assert.strictEqual(typeof o.a, 'function');
assert.strictEqual(typeof o.b, 'function');
assert.strictEqual(res, o.b);

0 comments on commit a64b2f2

Please sign in to comment.