Giter Site home page Giter Site logo

web-workers-demo's Introduction

web-workers-demo's People

Contributors

cameronwp avatar sudkul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

web-workers-demo's Issues

security exception block web workers on Chrome

The improved solution can't work locally on Chrome.
Please warn the user about that and give him workarounds :

example :
npm install http-server -g
cd web-workers-demo
http-server .
127.0.0.1:8080//index-solution-improved.html

ud860 - L4 - JavaScript - Web Workers Quiz: Linked Repo Contains Reference Error in worker.js File

Updated by Susan Smith July 1, 2015.

This is in regard to this web worker repo:
https://github.com/udacity/web-workers-demo/tree/solution/scripts

Which is referenced in the BRO Web Workers Quiz Here:

https://www.udacity.com/course/viewer#!/c-ud860/l-4138168623/e-4184098558/m-4150829139

In worker.js on MASTER branch, the error catching code defines a ManipulatorException but then attempts to throw an "InverterException" - this causes a ReferenceError.

Code:
catch (e) {
function ManipulatorException(message) {
this.name = "ManipulationException";
this.message = message;
};
throw new InverterException('Image manipulation error');
postMessage(undefined);
}

The worker-improved.js in the SOLUTION branch does not have this mismatch:

Code:
catch (e) {
function InverterException(message) {
this.name = "InverterException";
this.message = message;
};
throw new InverterException("Image manipulation error");
postMessage(undefined);
}

Should the error code in worker.js in the MASTER branch be updated to match the inverterException name?

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.