From 6120d4ece4d238fda7110f770680e29114f11783 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Mon, 2 Jan 2017 06:14:05 +0200 Subject: [PATCH] Add a 'global' binding --- src-input/builtins.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src-input/builtins.yaml b/src-input/builtins.yaml index d9f0a351..f957e41f 100644 --- a/src-input/builtins.yaml +++ b/src-input/builtins.yaml @@ -168,6 +168,16 @@ objects: bidx: true properties: + # 'global' binding giving easy to access to the global object. + # Not yet standard, see https://github.com/tc39/proposal-global. + - key: "global" + value: + type: object + id: bi_global + attributes: "wc" + # This could be stripped when DUK_USE_GLOBAL_BUILTIN is disabled + # but keep for now (the property is quite fundamental). + - key: "NaN" value: type: double