diff --git a/js/js2/interpreter.cpp b/js/js2/interpreter.cpp index e2bcf4f77701..d3165e7e54e1 100644 --- a/js/js2/interpreter.cpp +++ b/js/js2/interpreter.cpp @@ -454,7 +454,7 @@ JSValue Context::interpret(ICodeModule* iCode, const JSValues& args) break; case WITHOUT: { - Without* without = static_cast(instruction); + // Without* without = static_cast(instruction); mGlobal = mGlobal->getParent(); } break; diff --git a/js/js2/jstypes.cpp b/js/js2/jstypes.cpp index 6eb92f8eb07b..021486eb1dd8 100644 --- a/js/js2/jstypes.cpp +++ b/js/js2/jstypes.cpp @@ -51,6 +51,8 @@ int JSValue::operator==(const JSValue& value) const CASE(i64); CASE(u64); CASE(f64); CASE(object); CASE(array); CASE(function); #undef CASE + // question: are all undefined values equal to one another? + case undefined_tag: return 1; } } return 0; diff --git a/js2/src/interpreter.cpp b/js2/src/interpreter.cpp index e2bcf4f77701..d3165e7e54e1 100644 --- a/js2/src/interpreter.cpp +++ b/js2/src/interpreter.cpp @@ -454,7 +454,7 @@ JSValue Context::interpret(ICodeModule* iCode, const JSValues& args) break; case WITHOUT: { - Without* without = static_cast(instruction); + // Without* without = static_cast(instruction); mGlobal = mGlobal->getParent(); } break; diff --git a/js2/src/jstypes.cpp b/js2/src/jstypes.cpp index 6eb92f8eb07b..021486eb1dd8 100644 --- a/js2/src/jstypes.cpp +++ b/js2/src/jstypes.cpp @@ -51,6 +51,8 @@ int JSValue::operator==(const JSValue& value) const CASE(i64); CASE(u64); CASE(f64); CASE(object); CASE(array); CASE(function); #undef CASE + // question: are all undefined values equal to one another? + case undefined_tag: return 1; } } return 0;