to-string-tag-x
Advanced tools
Comparing version
20
index.js
@@ -37,3 +37,21 @@ /** | ||
* an object and therefore can report any string that it wishes. | ||
* @version 1.0.0 | ||
* | ||
* <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
* `es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5 | ||
* methods that can be faithfully emulated with a legacy JavaScript engine. | ||
* | ||
* `es5-sham.js` monkey-patches other ES5 methods as closely as possible. | ||
* For these methods, as closely as possible to ES5 is not very close. | ||
* Many of these shams are intended only to allow code to be written to ES5 | ||
* without causing run-time errors in older engines. In many cases, | ||
* this means that these shams cause many ES5 methods to silently fail. | ||
* Decide carefully whether this is what you want. Note: es5-sham.js requires | ||
* es5-shim.js to be able to work properly. | ||
* | ||
* `json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully. | ||
* | ||
* `es6.shim.js` provides compatibility shims so that legacy JavaScript engines | ||
* behave as closely as possible to ECMAScript 6 (Harmony). | ||
* | ||
* @version 1.0.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -40,0 +58,0 @@ * @copyright Xotic750 |
@@ -38,3 +38,21 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
* an object and therefore can report any string that it wishes. | ||
* @version 1.0.0 | ||
* | ||
* <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
* `es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5 | ||
* methods that can be faithfully emulated with a legacy JavaScript engine. | ||
* | ||
* `es5-sham.js` monkey-patches other ES5 methods as closely as possible. | ||
* For these methods, as closely as possible to ES5 is not very close. | ||
* Many of these shams are intended only to allow code to be written to ES5 | ||
* without causing run-time errors in older engines. In many cases, | ||
* this means that these shams cause many ES5 methods to silently fail. | ||
* Decide carefully whether this is what you want. Note: es5-sham.js requires | ||
* es5-shim.js to be able to work properly. | ||
* | ||
* `json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully. | ||
* | ||
* `es6.shim.js` provides compatibility shims so that legacy JavaScript engines | ||
* behave as closely as possible to ECMAScript 6 (Harmony). | ||
* | ||
* @version 1.0.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -41,0 +59,0 @@ * @copyright Xotic750 |
{ | ||
"name": "to-string-tag-x", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Get an object's @@toStringTag module.", | ||
@@ -35,8 +35,10 @@ "homepage": "https://github.com/Xotic750/to-string-tag-x", | ||
"devDependencies": { | ||
"es5-shim": "^4.3.1", | ||
"jscs": "^2.5.1", | ||
"es5-shim": "^4.4.1", | ||
"es6-shim": "^0.34.0", | ||
"json3": "^3.3.2", | ||
"jscs": "^2.7.0", | ||
"uglify-js": "^2.6.1", | ||
"browserify": "12.0.1", | ||
"jasmine-node": "^1.14.5", | ||
"jsdoc-to-markdown": "^1.2.1" | ||
"jsdoc-to-markdown": "^1.3.1" | ||
}, | ||
@@ -43,0 +45,0 @@ "scripts": { |
@@ -38,3 +38,20 @@ <a name="module_to-string-tag-x"></a> | ||
**Version**: 1.0.0 | ||
<h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
`es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5 | ||
methods that can be faithfully emulated with a legacy JavaScript engine. | ||
`es5-sham.js` monkey-patches other ES5 methods as closely as possible. | ||
For these methods, as closely as possible to ES5 is not very close. | ||
Many of these shams are intended only to allow code to be written to ES5 | ||
without causing run-time errors in older engines. In many cases, | ||
this means that these shams cause many ES5 methods to silently fail. | ||
Decide carefully whether this is what you want. Note: es5-sham.js requires | ||
es5-shim.js to be able to work properly. | ||
`json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully. | ||
`es6.shim.js` provides compatibility shims so that legacy JavaScript engines | ||
behave as closely as possible to ECMAScript 6 (Harmony). | ||
**Version**: 1.0.1 | ||
**Author:** Xotic750 <Xotic750@gmail.com> | ||
@@ -41,0 +58,0 @@ **License**: [MIT](<https://opensource.org/licenses/MIT>) |
@@ -18,2 +18,8 @@ /*jslint maxlen:80, es6:true, white:true */ | ||
require('es5-shim'); | ||
require('es5-shim/es5-sham'); | ||
if (typeof JSON === 'undefined') { | ||
JSON = {}; | ||
} | ||
require('json3').runInContext(null, JSON); | ||
require('es6-shim'); | ||
toStringTag = require('../../index.js'); | ||
@@ -20,0 +26,0 @@ } else { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
64248
5.5%806
5.5%77
28.33%8
33.33%