added missing JS_HAS_GENERATORS #if/#endif (r=gal)
authorDave Herman <dherman@mozilla.com>
Fri, 08 Apr 2011 13:46:19 -0700
changeset 67936 dbecfa4351015d66092cec1185a28c66d9201199
parent 67935 90fa43dcb844d2f2051a3cdfe9ad00d3268d0ff9
child 67937 48489a602029f61689e02e80ef2856772273c760
push id19455
push usercleary@mozilla.com
push dateTue, 12 Apr 2011 03:42:33 +0000
treeherdermozilla-central@d208845094bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgal
milestone2.2a1pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
added missing JS_HAS_GENERATORS #if/#endif (r=gal)
js/src/jsfun.cpp
--- a/js/src/jsfun.cpp
+++ b/js/src/jsfun.cpp
@@ -2424,17 +2424,19 @@ fun_bind(JSContext *cx, uintN argc, Valu
 static JSFunctionSpec function_methods[] = {
 #if JS_HAS_TOSOURCE
     JS_FN(js_toSource_str,   fun_toSource,   0,0),
 #endif
     JS_FN(js_toString_str,   fun_toString,   0,0),
     JS_FN(js_apply_str,      js_fun_apply,   2,0),
     JS_FN(js_call_str,       js_fun_call,    1,0),
     JS_FN("bind",            fun_bind,       1,0),
+#if JS_HAS_GENERATORS
     JS_FN("isGenerator",     fun_isGenerator,0,0),
+#endif
     JS_FS_END
 };
 
 /*
  * Report "malformed formal parameter" iff no illegal char or similar scanner
  * error was already reported.
  */
 static bool