Fix several constructors.

"is/was supplied/specified" is different from "is not undefined" which
is used in most of the spec.
This commit is contained in:
Tor Andersson
2014-03-13 13:36:29 +01:00
parent 858d5890b3
commit 5dbd120154
4 changed files with 7 additions and 7 deletions

View File

@@ -50,12 +50,12 @@ int js_utfptrtoidx(const char *s, const char *p)
static void jsB_new_String(js_State *J)
{
js_newstring(J, js_isdefined(J, 1) ? js_tostring(J, 1) : "");
js_newstring(J, js_gettop(J) > 1 ? js_tostring(J, 1) : "");
}
static void jsB_String(js_State *J)
{
js_pushliteral(J, js_isdefined(J, 1) ? js_tostring(J, 1) : "");
js_pushliteral(J, js_gettop(J) > 1 ? js_tostring(J, 1) : "");
}
static void Sp_toString(js_State *J)