summaryrefslogtreecommitdiff
path: root/tests/node_compat/test/parallel/test-url-parse-query.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/node_compat/test/parallel/test-url-parse-query.js')
-rw-r--r--tests/node_compat/test/parallel/test-url-parse-query.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/node_compat/test/parallel/test-url-parse-query.js b/tests/node_compat/test/parallel/test-url-parse-query.js
index 2621a5542..6f6c425bb 100644
--- a/tests/node_compat/test/parallel/test-url-parse-query.js
+++ b/tests/node_compat/test/parallel/test-url-parse-query.js
@@ -11,7 +11,7 @@ const assert = require('assert');
const url = require('url');
function createWithNoPrototype(properties = []) {
- const noProto = Object.create(null);
+ const noProto = { __proto__: null };
properties.forEach((property) => {
noProto[property.key] = property.value;
});