Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 0e1e4bd3ed750d4b65dd1f0e27ef311e13eaa629..7de0d12ad0c2987cd7aafdb1e698c40842e56c57 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -943,7 +943,7 @@ |
InitializeFunctionTemplate(obj); |
obj->set_do_not_cache(do_not_cache); |
int next_serial_number = 0; |
- if (!do_not_cache && !obj->serial_number()->IsSmi()) { |
+ if (!do_not_cache) { |
next_serial_number = isolate->next_serial_number() + 1; |
isolate->set_next_serial_number(next_serial_number); |
} |