ref: 422343489694025b3ccddd6253cb69ec5f483d64
parent: d664d08a8ed166d3c58b82680950afb9d17dfc8e
author: Tor Andersson <tor@ccxvii.net>
date: Thu Mar 13 10:40:55 EDT 2014
Fix attributes of numeric constants.
--- a/jsbuiltin.c
+++ b/jsbuiltin.c
@@ -19,7 +19,7 @@
void jsB_propn(js_State *J, const char *name, double number)
{
js_pushnumber(J, number);
- js_defproperty(J, -2, name, JS_DONTENUM);
+ js_defproperty(J, -2, name, JS_READONLY | JS_DONTENUM | JS_DONTCONF);
}
void jsB_props(js_State *J, const char *name, const char *string)