How to use runtime-shared - 2 common examples

To help you get started, we’ve selected a few runtime-shared examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alibaba / rax / packages / atag / vendors / es-polyfills.js View on Github external
import { polyfill as polyfillArrayES7 } from 'runtime-shared/lib/array.es7';
import { polyfill as polyfillObjectES6 } from 'runtime-shared/lib/object.es6';

polyfillArrayES7(Array);
polyfillObjectES6(Object);

// polyfill setPrototypeOf
Object.setPrototypeOf = Object.setPrototypeOf || function(obj, proto) {
  obj.__proto__ = proto;
  return obj;
};
github alibaba / rax / packages / atag / vendors / es-polyfills.js View on Github external
import { polyfill as polyfillArrayES7 } from 'runtime-shared/lib/array.es7';
import { polyfill as polyfillObjectES6 } from 'runtime-shared/lib/object.es6';

polyfillArrayES7(Array);
polyfillObjectES6(Object);

// polyfill setPrototypeOf
Object.setPrototypeOf = Object.setPrototypeOf || function(obj, proto) {
  obj.__proto__ = proto;
  return obj;
};

runtime-shared

Shared Runtime.

BSD-3-Clause
Latest version published 6 years ago

Package Health Score

57 / 100
Full package analysis

Similar packages