Coder Social home page Coder Social logo

xotic750 / create-array-fix-x Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 237 KB

Address Safari 10.1 array bug: https://bugs.webkit.org/show_bug.cgi?id=170264

License: MIT License

JavaScript 93.13% HTML 6.87%
javascript nodejs browser opera array bugfix

create-array-fix-x's Introduction

Travis status Dependency status devDependency status npm version

create-array-fix-x

Address Safari 10.1 array bug: https://bugs.webkit.org/show_bug.cgi?id=170264

Version: 0.1.0
Author: Xotic750 [email protected]
License: MIT
Copyright: Xotic750

module.exports([parameters])Object

Address Safari 10.1 array bug: https://bugs.webkit.org/show_bug.cgi?id=170264

Kind: Exported function
Returns: Object - An array or array subclass if array is broken.

Param Type Description
[parameters] number | * The construction parameters.

Example

var createArray = require('create-array-fix-x');

createArray(); // []
createArray(5); // [, , , , , ]
createArray(1, 2, 3, 4, 5); // [1, 2, 3, 4, 5]

// adressed bug
var testArray = createArrayFix(0, 2147483648); // Note: the second number is greater than a signed 32bit int
testArray.shift(); // remove the first element so arr is [2147483648]
testArray[1] = 1; // Safari fails to add the new element and the array is unchanged
testArray; // [2147483648, 1]

create-array-fix-x's People

Contributors

xotic750 avatar

Watchers

 avatar  avatar

create-array-fix-x's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.