Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5959859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:44:39+00:00 2026-05-22T18:44:39+00:00

Some of you may or may not (probably not) know about my framework .

  • 0

Some of you may or may not (probably not) know about my framework. It’s name is Ally, and I absolutely love using it.

Lately I’ve been doing a little bit of stuff in Node.js. Today I decided I was going to use it as my HTTP server, so that I could do server-side JS (in a PHP kind of way).

To do this, I started a project I’m calling Trailer . While working on it, I found myself needing one of Ally’s functions, Object:deploy. What it does is pretty much this:

var a = { a: 'a' };
a.deploy({ b: 'b' });
a.a; // 'a'
a.b; // 'b'

So I loaded it in..

var Ally = require('./Ally.js');

..but when I tried using it, it said it was undefined.

After a bit of digging I discovered that Object:deploy is defined in the Ally.js file, but the changes it makes to the global constructors don’t stay.

How do I make the changes to global variables in the Ally.js file apply to the global variables in the file that required it?

Note: Ally is linked to above if looking through the source could help, and Trailer is linked to in case anyone wants to use it when I get a usable version out.

  • 1 1 Answer
  • 4 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:44:39+00:00Added an answer on May 22, 2026 at 6:44 pm

    Is this discussion relevant? The key points here seem to be:

    1. require won’t extend global objects if you’re working in the shell

    2. It also won’t work when NODE_MODULE_CONTEXTS = 1, though this doesn’t seem to be the default for a script.

    So if you’re trying to run this in an interactive shell, that might be the issue. See also this SO question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

public class A { //some fields (may not only primitive types) and methods here}
I have a directed cyclic graph. Some edges are FIXED and may not be
May be my title is not clear. I am looking for some kind of
I'm trying this and for some reason is not working. I'm suspecting it may
I have a checkbox which in some cases may be disabled and checked using
Some of you may know the method in Ruby that allows you to reverse
As some of you may know, use of the LIMIT keyword in MySQL does
Been doing some brief research into multithreaded C# event handling because I had a
OK, I know there have already been questions about getting started with TDD ..
According to the text in avcodec.h file, there are some decoders may support multiple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.