diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-08-12 17:19:50 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-08-18 09:59:02 +0000 |
commit | d33966ba9d2d6a916ce11f1ad2635f8a118888c3 (patch) | |
tree | c482591dded4123e377810b6dfcb3b97e2c1d321 /src | |
parent | c8a2e4acb101967c254d7e9d3c4e7d9f25c5eecc (diff) |
Fix a small bug in JumpStrictNotEqual
NaN !== NaN
Change-Id: I864fd0494ca518b3d45a6e83142d8ac6610c8a47
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/qml/jsruntime/qv4vme_moth.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4vme_moth.cpp b/src/qml/jsruntime/qv4vme_moth.cpp index 72a707fe51..defbf2bde9 100644 --- a/src/qml/jsruntime/qv4vme_moth.cpp +++ b/src/qml/jsruntime/qv4vme_moth.cpp @@ -911,7 +911,7 @@ QV4::ReturnedValue VME::exec(const FunctionObject *jsFunction, CallData *callDat MOTH_END_INSTR(JumpStrictEqual) MOTH_BEGIN_INSTR(JumpStrictNotEqual) - if (STACK_VALUE(instr.lhs).rawValue() != accumulator.rawValue()) { + if (STACK_VALUE(instr.lhs).rawValue() != accumulator.rawValue() || accumulator.isNaN()) { if (!RuntimeHelpers::strictEqual(STACK_VALUE(instr.lhs), accumulator)) code = reinterpret_cast<const uchar *>(&instr.offset) + instr.offset; } |