Permalink
Browse files

fix typecheck for sleep

  • Loading branch information...
Simon Vogl
Simon Vogl committed Feb 10, 2011
1 parent 5d14a4f commit cb3517544e0cc07c185d83ef49fb5796b3fc1899
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/js_sysutil.cpp
View
@@ -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]);

0 comments on commit cb35175

Please sign in to comment.