Gabriel Ivăncescu : jscript: Store NULL disps as a different type of jsval_null.

Alexandre Julliard julliard at winehq.org
Thu Mar 24 17:46:44 CDT 2022


Module: wine
Branch: master
Commit: f6dc431af56aeb9bcd69108cc7510a142e59035e
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f6dc431af56aeb9bcd69108cc7510a142e59035e

Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date:   Thu Mar 24 17:31:06 2022 +0200

jscript: Store NULL disps as a different type of jsval_null.

This makes sure that object instances are always non-NULL and gets rid of
all such checks.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/jscript/array.c       | 13 ++++++------
 dlls/jscript/dispex.c      |  8 ++++----
 dlls/jscript/engine.c      | 31 ++++++++++-------------------
 dlls/jscript/function.c    | 13 +++++++-----
 dlls/jscript/json.c        | 11 ++++++-----
 dlls/jscript/jsutils.c     | 49 ++++++++++++++++++++--------------------------
 dlls/jscript/jsval.h       | 13 ++++++++++--
 dlls/jscript/object.c      | 25 +++++++++++++----------
 dlls/jscript/set.c         |  2 +-
 dlls/jscript/tests/api.js  |  8 ++++++++
 dlls/jscript/tests/lang.js |  2 ++
 11 files changed, 93 insertions(+), 82 deletions(-)

Diff:   https://source.winehq.org/git/wine.git/?a=commitdiff;h=f6dc431af56aeb9bcd69108cc7510a142e59035e



More information about the wine-cvs mailing list