MCPcopy Index your code
hub / github.com/plotly/plotly.js / typedArraySupport

Function typedArraySupport

stackgl_modules/index.js:70–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 console.error('This browser lacks typed array (Uint8Array) support which is required by ' + '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.');
69}
70function typedArraySupport() {
71 // Can typed array instances can be augmented?
72 try {
73 var arr = new Uint8Array(1);
74 var proto = {
75 foo: function foo() {
76 return 42;
77 }
78 };
79 Object.setPrototypeOf(proto, Uint8Array.prototype);
80 Object.setPrototypeOf(arr, proto);
81 return arr.foo() === 42;
82 } catch (e) {
83 return false;
84 }
85}
86Object.defineProperty(Buffer.prototype, 'parent', {
87 enumerable: true,
88 get: function get() {

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…