Browse Source

fix typeof behavior for unresolvable reference

pull/1/head
Sami Vaarala 12 years ago
parent
commit
4f8b408f69
  1. 2
      src/duk_js_executor.c

2
src/duk_js_executor.c

@ -2851,7 +2851,7 @@ void duk_js_execute_bytecode(duk_hthread *entry_thread) {
duk_pop_2(ctx);
} else {
/* unresolvable, no stack changes */
duk_push_undefined(ctx);
duk_push_hstring_stridx(ctx, DUK_STRIDX_UNDEFINED);
duk_replace(ctx, b);
}

Loading…
Cancel
Save