[njs] Test262: fix import_global_ref_var.t.js.

Dmitry Volyntsev xeioex at nginx.com
Thu Feb 8 01:57:57 UTC 2024


details:   https://hg.nginx.org/njs/rev/d3a9f2f153f8
branches:  
changeset: 2286:d3a9f2f153f8
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Wed Feb 07 17:57:02 2024 -0800
description:
Test262: fix import_global_ref_var.t.js.

diffstat:

 test/js/import_global_ref_var.t.js |  2 +-
 test/js/module/export_global_a.js  |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 82ae061db9d0 -r d3a9f2f153f8 test/js/import_global_ref_var.t.js
--- a/test/js/import_global_ref_var.t.js	Wed Feb 07 17:57:01 2024 -0800
+++ b/test/js/import_global_ref_var.t.js	Wed Feb 07 17:57:02 2024 -0800
@@ -4,7 +4,7 @@ flags: []
 paths: [test/js/module/]
 ---*/
 
-var a = 42;
+globalThis.a = 42;
 import m from 'export_global_a.js';
 
 assert.sameValue(m.f(), 42);
diff -r 82ae061db9d0 -r d3a9f2f153f8 test/js/module/export_global_a.js
--- a/test/js/module/export_global_a.js	Wed Feb 07 17:57:01 2024 -0800
+++ b/test/js/module/export_global_a.js	Wed Feb 07 17:57:02 2024 -0800
@@ -1,5 +1,5 @@
 function f() {
-    return a;
+    return globalThis.a;
 }
 
 export default {f};


More information about the nginx-devel mailing list