Skip to content

Commit

Permalink
[js] We now pass test 43. Update make js-test.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Oct 28, 2015
1 parent 4467abe commit 11d9d69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/js/bin/run_tests.pl
Expand Up @@ -12,7 +12,7 @@
my @qast = glob "t/qast/02*";
my @js_specific = "t/js/getcomp-js.t";

my @nqp_tests = glob "t/nqp/{01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,25,26,27,28,29,31,32,33,34,35,36,37,38,39,40,41,42,44,45,46,47,48,50,51,53,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,83,84,88,89,90,91,92,93,94,95,96}*.t";
my @nqp_tests = glob "t/nqp/{01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,25,26,27,28,29,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,51,53,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,83,84,88,89,90,91,92,93,94,95,96}*.t";

my @runtime_unit_tests = qw(t/js/varint.js);

Expand Down
8 changes: 8 additions & 0 deletions src/vm/js/nqp-runtime/core.js
Expand Up @@ -190,6 +190,14 @@ op.create = function(obj) {
return obj._STable.REPR.allocate(obj._STable);
};

// HACK - till the array refactor we hack this

op.bootarray = function(obj) {
return {_STable: {REPR: {allocate: function(STable) {
return [];
}}}};
};

op.defined = function(obj) {
// TODO - handle more things that aren't defined
if (obj === undefined || obj === null || obj.type_object_) {
Expand Down

0 comments on commit 11d9d69

Please sign in to comment.