aboutsummaryrefslogtreecommitdiffhomepage
path: root/js/compatibility_tests/v3.1.0/message_test.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/compatibility_tests/v3.1.0/message_test.js')
-rw-r--r--js/compatibility_tests/v3.1.0/message_test.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/js/compatibility_tests/v3.1.0/message_test.js b/js/compatibility_tests/v3.1.0/message_test.js
index b46e50d3..c1023784 100644
--- a/js/compatibility_tests/v3.1.0/message_test.js
+++ b/js/compatibility_tests/v3.1.0/message_test.js
@@ -643,12 +643,7 @@ describe('Message test suite', function() {
it('testInitialization_emptyArray', function() {
var msg = new proto.jspb.test.HasExtensions([]);
- if (jspb.Message.MINIMIZE_MEMORY_ALLOCATIONS) {
- assertArrayEquals([], msg.toArray());
- } else {
- // Extension object is created past all regular fields.
- assertArrayEquals([,,, {}], msg.toArray());
- }
+ assertArrayEquals([], msg.toArray());
});
it('testInitialization_justExtensionObject', function() {