Index: test/mjsunit/tools/codemap.js |
diff --git a/test/mjsunit/tools/codemap.js b/test/mjsunit/tools/codemap.js |
index 81fb81015e342ae8871b5cc4b9086c44c464fab4..33d7e4e08759f2e579c80e709d68f22a28e17877 100644 |
--- a/test/mjsunit/tools/codemap.js |
+++ b/test/mjsunit/tools/codemap.js |
@@ -157,6 +157,7 @@ function assertNoEntry(codeMap, addr) { |
codeMap.addStaticCode(0x15500, newCodeEntry(0x5000, 'lib2')); |
codeMap.addStaticCode(0x155500, newCodeEntry(0x10000, 'lib3')); |
var allStatics = codeMap.getAllStaticEntries(); |
+ allStatics = allStatics.map(String); |
allStatics.sort(); |
assertEquals(['lib1: 3000', 'lib2: 5000', 'lib3: 10000'], allStatics); |
})(); |
@@ -168,13 +169,15 @@ function assertNoEntry(codeMap, addr) { |
codeMap.addCode(0x1700, newCodeEntry(0x100, 'code2')); |
codeMap.addCode(0x1900, newCodeEntry(0x50, 'code3')); |
var allDynamics = codeMap.getAllDynamicEntries(); |
+ allDynamics = allDynamics.map(String); |
allDynamics.sort(); |
assertEquals(['code1: 200', 'code2: 100', 'code3: 50'], allDynamics); |
codeMap.deleteCode(0x1700); |
var allDynamics2 = codeMap.getAllDynamicEntries(); |
+ allDynamics2 = allDynamics2.map(String); |
allDynamics2.sort(); |
assertEquals(['code1: 200', 'code3: 50'], allDynamics2); |
codeMap.deleteCode(0x1500); |
var allDynamics3 = codeMap.getAllDynamicEntries(); |
- assertEquals(['code3: 50'], allDynamics3); |
+ assertEquals(['code3: 50'], allDynamics3.map(String)); |
})(); |