merge objects and recs
This commit is contained in:
@@ -100,9 +100,6 @@
|
|||||||
// #define DUMP_SHAPES /* dump shapes in JS_FreeContext */
|
// #define DUMP_SHAPES /* dump shapes in JS_FreeContext */
|
||||||
// #define DUMP_READ_OBJECT
|
// #define DUMP_READ_OBJECT
|
||||||
// #define DUMP_ROPE_REBALANCE
|
// #define DUMP_ROPE_REBALANCE
|
||||||
/* dump profiling statistics (counters and sampling) when freeing the runtime
|
|
||||||
*/
|
|
||||||
// #define DUMP_PROFILE
|
|
||||||
|
|
||||||
// #define RC_TRACE
|
// #define RC_TRACE
|
||||||
|
|
||||||
@@ -5695,8 +5692,7 @@ static JSValue JS_GetPropertyInt64 (JSContext *ctx, JSValue obj, int64_t idx) {
|
|||||||
return JS_GetPropertyNumber (ctx, obj, idx);
|
return JS_GetPropertyNumber (ctx, obj, idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
JSValue JS_GetPropertyStr (JSContext *ctx, JSValue this_obj,
|
JSValue JS_GetPropertyStr (JSContext *ctx, JSValue this_obj, const char *prop) {
|
||||||
const char *prop) {
|
|
||||||
if (JS_VALUE_GET_TAG (this_obj) != JS_TAG_OBJECT) return JS_NULL;
|
if (JS_VALUE_GET_TAG (this_obj) != JS_TAG_OBJECT) return JS_NULL;
|
||||||
|
|
||||||
size_t len = strlen (prop);
|
size_t len = strlen (prop);
|
||||||
@@ -6919,12 +6915,6 @@ static JSValue JS_ToStringFree (JSContext *ctx, JSValue val) {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static JSValue JS_ToLocaleStringFree (JSContext *ctx, JSValue val) {
|
|
||||||
/* Simplified: just use toString for now since toLocaleString requires
|
|
||||||
method lookup and atoms are removed */
|
|
||||||
return JS_ToStringFree (ctx, val);
|
|
||||||
}
|
|
||||||
|
|
||||||
JSValue JS_ToPropertyKey (JSContext *ctx, JSValue val) {
|
JSValue JS_ToPropertyKey (JSContext *ctx, JSValue val) {
|
||||||
int tag = JS_VALUE_GET_TAG (val);
|
int tag = JS_VALUE_GET_TAG (val);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user