Questions tagged [ecma]

ECMA is a standards organisation

214 questions
0
votes
2 answers

node js undefined value return from http get async function

I am trying to get the http get response from async function.However within the function value is displaying but return values is undefined. Even promise not undefined values please find code below 'use strict'; const express =…
0
votes
1 answer

ES6 Proxy interceptor with Object Literals self-references

I have node.JS app that have methods called multiple times with the same parameters. (optimization problem trying out combinations) The source code is quite large and I'm not familiar with it and I'm trying to find what methods are called multiple…
Alex Kolarski
  • 3,255
  • 1
  • 25
  • 35
0
votes
0 answers

JavaScript - Running different RegEx engines

I'd like to write JavaScript code that runs regular expression engines other than the one built into it and returns the matches. My goal is to make a website where people can upload a RegEx, specify the engine and have the result shown to…
JackHasaKeyboard
  • 1,599
  • 1
  • 16
  • 29
0
votes
0 answers

Unexpected value 'undefined' declared by the module 'AppModule'?

Not able to solve this issue. My app.module.ts import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { HttpClientModule } from…
Abhi
  • 433
  • 2
  • 7
  • 17
0
votes
3 answers

JavaScript Literal Object In seperate Files

Say I have this structure: File1.js: var myObject = { bindEvents: function() { console.log('Root events binding'); } } keyboard-object.js: myObject.bindEvents: function() { console.log('Keyboard events…
Broshi
  • 3,334
  • 5
  • 37
  • 52
0
votes
1 answer

get instance of load() function in nashorn

How can I go about getting an instance of a script that is loaded in Java Script? I'm using the function load("script.js") and I need to call a function on that script, but I need the instance in a variable so i can store it in a map. I need…
Marshall Walker
  • 343
  • 1
  • 10
0
votes
0 answers

Returning outer function from inner function on click

I want to return the value 'returnvalue' to the function 'returnFunc' so that I can return that function to the outer function.
sskumar
  • 31
  • 1
  • 5
0
votes
3 answers

How to implement C# syntax to use with own platform? ECMA Standard

I want to know, is this possible to use C# language syntax in own platform? I know that C# is ECMA standartized language. So how can it be implemented? I know there are examples such as Mono & Unity3D who implemented C#. So for example : One common…
geCoder
  • 217
  • 1
  • 4
  • 7
0
votes
2 answers

Getting Key name of an Object item

Before marking this as a duplicate, i've spent a lot of time looking through similar question and most of the answers did not solves my situation. i have a huge list of items as objects by IDs. like this, in a Map (userDB) { …
Lucas Flicky
  • 126
  • 1
  • 1
  • 9
0
votes
3 answers

Why can't be a JS object literal converted to JSON ?

Since tutorials claim that with Javascript objects can be converted into JSON but when I try to convert this: var myObj = { name:"John", age:31, city:"New York" }; using this: var myJSON = JSON.stringify(myObj); window.location =…
Hunain Hafeez
  • 187
  • 10
0
votes
1 answer

Communication between JS module and html (in fullduplex)

I've got an inline module script using other modules from a project. I need to call module functions from html using onclick or everything else working..