Bug 898750 - Attach Array.build only if ENABLE_PARALLEL_JS. (r=shell bustage)

This commit is contained in:
Shu-yu Guo 2013-07-27 21:39:02 +02:00
parent 8e611bf37c
commit ea9ba911f0

View File

@ -2835,10 +2835,10 @@ static const JSFunctionSpec array_static_methods[] = {
{"some", {NULL, NULL}, 2,0, "ArrayStaticSome"},
{"reduce", {NULL, NULL}, 2,0, "ArrayStaticReduce"},
{"reduceRight", {NULL, NULL}, 2,0, "ArrayStaticReduceRight"},
{"build", {NULL, NULL}, 2,0, "ArrayStaticBuild"},
JS_FN("of", array_of, 0,0),
#ifdef ENABLE_PARALLEL_JS
{"build", {NULL, NULL}, 2,0, "ArrayStaticBuild"},
/* Parallelizable and pure static methods. */
{"buildPar", {NULL, NULL}, 3,0, "ArrayStaticBuildPar"},
#endif