Revision ed3d553d test/simple/test-typed-arrays.js

View differences:

test/simple/test-typed-arrays.js
50 50
  obj = new DataView(obj.buffer || obj);
51 51
  assert.equal(obj.toString(), '[object DataView]');
52 52
  assert.equal(Object.prototype.toString.call(obj), '[object DataView]');
53

  
54
  // Calling constructor as function should work.
55
  clazz(32);
53 56
});
54 57

  
58
// Calling constructor as function should work.
59
DataView(ArrayBuffer(32));
60

  
55 61
var buffer = new ArrayBuffer(16);
56 62
var uint8 = new Uint8Array(buffer);
57 63
var uint16 = new Uint16Array(buffer);

Also available in: Unified diff