Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix typecheck for sleep

  • Loading branch information...
commit cb3517544e0cc07c185d83ef49fb5796b3fc1899 1 parent 5d14a4f
Simon Vogl authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/js_sysutil.cpp
View
2  src/js_sysutil.cpp
@@ -221,7 +221,7 @@ static JSBool SysUtil_s_rename(JSContext *cx, JSObject *obj, uintN argc, jsval *
static JSBool SysUtil_s_sleep(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) {
fail_if_not(cx, (argc == 1), "pass the milliseconds you want to sleep!\n");
- fail_if_not(cx, JSVAL_IS_STRING(argv[0]), "arg must be a int!");
+ fail_if_not(cx, JSVAL_IS_INT(argv[0]), "arg must be a int!");
jsint ms = JSVAL_TO_INT(argv[0]);
Please sign in to comment.
Something went wrong with that request. Please try again.