Set property attributes on built-in objects and respect DontEnum.

This commit is contained in:
Tor Andersson
2014-01-23 17:53:22 +01:00
parent 2b209d3f55
commit 195816c208
13 changed files with 61 additions and 33 deletions
+1 -1
View File
@@ -40,5 +40,5 @@ void jsB_initboolean(js_State *J)
jsB_propf(J, "valueOf", Bp_valueOf, 0);
}
js_newcconstructor(J, jsB_Boolean, jsB_new_Boolean);
js_setglobal(J, "Boolean");
js_defglobal(J, "Boolean", JS_DONTENUM);
}