Welcome! Log In Create A New Profile

Advanced

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

Dmitry Volyntsev
February 07, 2024 09:00PM
details: https://hg.nginx.org/njs/rev/d3a9f2f153f8
branches:
changeset: 2286:d3a9f2f153f8
user: Dmitry Volyntsev <xeioex@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};
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Dmitry Volyntsev 162 February 07, 2024 09:00PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 120
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready